package cn.tedu.sp01.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
public class Item {
    private Integer id;
    private String name;      //商品名称
    private Integer number;   //商品数量

    public static void main(String[] args){
        Item a = new Item(5,"a",12);
        a.setName("b");
        System.out.println(a.getName());
    }
}
